﻿<%@ Page Title="<%$Resources:PageTitle %>" Language="C#" AutoEventWireup="true" CodeBehind="UserLogin.aspx.cs"
    Inherits="Pap.Web.Modules.Membership.Views.UserLogin" %>

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <ext:ScriptManager runat="server" AjaxMethodNamespace="Pap" StateProvider="None"
        Theme="Default" Locale="en-US" AjaxViewStateMode="Include" RemoveViewState="False">
    </ext:ScriptManager>
    <div>
        <ext:ViewPort runat="server" StyleSpec="<%$ Resources:Direction %>">
            <Body>
                <ext:Window ID="wndLogin" runat="server" Modal="True" AutoHeight="True" Resizable="False" Frame="true"
                    Closable="False" Constrain="True" IDMode="Static" Title="Log in" Width="300px"
                    CloseAction="Hide" Height="100px" meta:resourcekey="wndLoginResource1" DefaultButton="wndbtnSubmit">
                    <Defaults>
                        <ext:Parameter Name="SelectOnFocus" Value="true" Mode="Raw" />
                    </Defaults>
                    <Body>
                        <ext:FormPanel ID="wndMainForm" runat="server" ButtonAlign="Left" StandardSubmit="True" Frame="true">
                            <Body>
                                <ext:FormLayout ID="FormLayout1" IDMode="Static" runat="server">
                                    <ext:Anchor Horizontal="100%">
                                        <ext:TextField ID="txtName" runat="server" FieldLabel="Name" AllowBlank="False" IDMode="Static"
                                            meta:resourcekey="cmbUsersResource1" >
                                        </ext:TextField>
                                    </ext:Anchor>
                                    <ext:Anchor Horizontal="100%">
                                        <ext:TextField ID="txtPassword" runat="server" FieldLabel="Password" AllowBlank="False"
                                            IDMode="Static" InputType="Password" BlankText="Enter the user's password" EnableKeyEvents="true"
                                            meta:resourcekey="txtPasswordResource1">
                                           </ext:TextField>
                                    </ext:Anchor>
                                </ext:FormLayout>
                            </Body>
                            <Buttons>
                                <ext:Button ID="wndbtnSubmit" Text="Submit" IDMode="Static" runat="server" Icon="Accept"
                                    meta:resourcekey="wndbtnSubmitResource1" TabIndex="1">
                                    <AjaxEvents>
                                        <Click OnEvent="wndbtnSubmit_Clicked" ViewStateMode="Include" Before="return #{wndMainForm}.getForm().isValid();" Timeout="999999999">
                                           <EventMask ShowMask="true" Msg="Verifying..." MinDelay="500" />
                                        </Click>
                                    </AjaxEvents>
                                </ext:Button>
                            </Buttons>
                        </ext:FormPanel>
                    </Body>
                </ext:Window>
            </Body>
        </ext:ViewPort>
    </div>
    </form>
</body>
</html>
